﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/Base.Master" AutoEventWireup="true" CodeBehind="Password.aspx.cs" Inherits="WebsiteAdmin.Password.Password" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head_Title" runat="server">密码修改 - 设置</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head_Meta" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Head_Css" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Head_Script" runat="server">
    <script type="text/javascript" language="javascript">
		var MenuViewID = 1;
		$(function() {
		    $('#Submit').click(function() {
		        var oldPwd = $('#oldPwd').val();
		        if (oldPwd.length == 0) {
		            $('#ErrText').html('请输入原密码');
		            $('#oldPwd').focus();
		            return false;
		        }
		        var newPwd1 = $('#newPwd1').val();
		        if (newPwd1.length == 0) {
		            $('#ErrText').html('请输入新密码');
		            $('#newPwd1').focus();
		            return false;
		        }
		        var newPwd2 = $('#newPwd2').val();
		        if (newPwd2.length == 0) {
		            $('#ErrText').html('请确认密码');
		            $('#newPwd2').focus();
		            return false;
		        }
		        if (newPwd1 != newPwd2) {
		            $('#ErrText').html('确认密码不一致');
		            $('#newPwd2').focus();
		            return false;
		        }
		        document.location.href = "?oldPwd=" + oldPwd + "&newPwd=" + newPwd2;
		    });
		});
    </script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Body_Top" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Body_Content" runat="server">

    <div class="infobox">
		<h3>
			<span>密码修改</span>
		</h3>
		<form id="myForm" action="" runat="server">
		    <table border="0" cellpadding="0" cellspacing="0" class="table_form">
		        <tr>
                    <td align="right" width="100">
                        用户名：
                    </td>
                    <td><%=strUserName %></td>
                </tr>
		        <tr>
            		<td align="right" width="100"><span class="Need">原始密码：</span></td>
            		<td><input type="password" name="" id="oldPwd" size="54"  runat="server"/></td>
				</tr>
				<tr>
            		<td align="right" width="100"><span class="Need">新建密码：</span></td>
            		<td><input type="password" name="" id="newPwd1" size="54"  runat="server"/></td>
				</tr>
				<tr>
            		<td align="right" width="100"><span class="Need">密码确认：</span></td>
            		<td><input type="password" name="" id="newPwd2" size="54"  runat="server"/></td>
				</tr>
				<tr>
                    <td colspan="2">
                        <asp:Label ID="ErrText" runat="server"></asp:Label>
                    </td>
                </tr>
				
		    </table>
		    <table border="0" cellpadding="0" cellspacing="0" class="table_form">
				<tr>
					<td width="100" height="40">&nbsp;</td>
					<td>
						<input id="Submit" type="button" value="提交" class="btn" runat="server" onserverclick="Submit_ServerClick" />
						<input type="reset" value="重置" class="btn" />
					</td>
				</tr>
			</table>		
		</form>
    </div>

</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Body_Foot" runat="server">
</asp:Content>
